// ----------------------------------------------------------------------------
// serialize_pointer_value.cpp
// ----------------------------------------------------------------------------
#include <fw/base/serialize/serialize_pointer_value.h>
#include <cstring>

namespace fw
{
	SerializePointerValue::SerializePointerValue()
	: m_value(nullptr)
	{
	}
	
	SerializePointerValue SerializePointerValue::Pointer(const char *p)
	{
		SerializePointerValue value;
		value.m_value = p;
		return value;
	}
	
	const char* SerializePointerValue::AsConstCharStar() const
	{
		return m_value;
	}
	
	char* SerializePointerValue::AsCharStar() const
	{
		return const_cast<char*>(m_value);
	}
	
} // namespace fw
